home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / SCSL / ssygvx.z / ssygvx
Encoding:
Text File  |  2002-10-03  |  10.2 KB  |  265 lines

  1.  
  2.  
  3.  
  4. SSSSSSSSYYYYGGGGVVVVXXXX((((3333SSSS))))                                                          SSSSSSSSYYYYGGGGVVVVXXXX((((3333SSSS))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      SSYGVX - compute selected eigenvalues, and optionally, eigenvectors of a
  10.      real generalized symmetric-definite eigenproblem, of the form
  11.      A*x=(lambda)*B*x, A*Bx=(lambda)*x, or B*A*x=(lambda)*x
  12.  
  13. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.      SUBROUTINE SSYGVX( ITYPE, JOBZ, RANGE, UPLO, N, A, LDA, B, LDB, VL, VU,
  15.                         IL, IU, ABSTOL, M, W, Z, LDZ, WORK, LWORK, IWORK,
  16.                         IFAIL, INFO )
  17.  
  18.          CHARACTER      JOBZ, RANGE, UPLO
  19.  
  20.          INTEGER        IL, INFO, ITYPE, IU, LDA, LDB, LDZ, LWORK, M, N
  21.  
  22.          REAL           ABSTOL, VL, VU
  23.  
  24.          INTEGER        IFAIL( * ), IWORK( * )
  25.  
  26.          REAL           A( LDA, * ), B( LDB, * ), W( * ), WORK( * ), Z( LDZ, *
  27.                         )
  28.  
  29. IIIIMMMMPPPPLLLLEEEEMMMMEEEENNNNTTTTAAAATTTTIIIIOOOONNNN
  30.      These routines are part of the SCSL Scientific Library and can be loaded
  31.      using either the -lscs or the -lscs_mp option.  The -lscs_mp option
  32.      directs the linker to use the multi-processor version of the library.
  33.  
  34.      When linking to SCSL with -lscs or -lscs_mp, the default integer size is
  35.      4 bytes (32 bits). Another version of SCSL is available in which integers
  36.      are 8 bytes (64 bits).  This version allows the user access to larger
  37.      memory sizes and helps when porting legacy Cray codes.  It can be loaded
  38.      by using the -lscs_i8 option or the -lscs_i8_mp option. A program may use
  39.      only one of the two versions; 4-byte integer and 8-byte integer library
  40.      calls cannot be mixed.
  41.  
  42. PPPPUUUURRRRPPPPOOOOSSSSEEEE
  43.      SSYGVX computes selected eigenvalues, and optionally, eigenvectors of a
  44.      real generalized symmetric-definite eigenproblem, of the form
  45.      A*x=(lambda)*B*x, A*Bx=(lambda)*x, or B*A*x=(lambda)*x. Here A and B are
  46.      assumed to be symmetric and B is also positive definite.  Eigenvalues and
  47.      eigenvectors can be selected by specifying either a range of values or a
  48.      range of indices for the desired eigenvalues.
  49.  
  50.  
  51. AAAARRRRGGGGUUUUMMMMEEEENNNNTTTTSSSS
  52.      ITYPE   (input) INTEGER
  53.              Specifies the problem type to be solved:
  54.              = 1:  A*x = (lambda)*B*x
  55.              = 2:  A*B*x = (lambda)*x
  56.              = 3:  B*A*x = (lambda)*x
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. SSSSSSSSYYYYGGGGVVVVXXXX((((3333SSSS))))                                                          SSSSSSSSYYYYGGGGVVVVXXXX((((3333SSSS))))
  71.  
  72.  
  73.  
  74.      JOBZ    (input) CHARACTER*1
  75.              = 'N':  Compute eigenvalues only;
  76.              = 'V':  Compute eigenvalues and eigenvectors.
  77.  
  78.      RANGE   (input) CHARACTER*1
  79.              = 'A': all eigenvalues will be found.
  80.              = 'V': all eigenvalues in the half-open interval (VL,VU] will be
  81.              found.  = 'I': the IL-th through IU-th eigenvalues will be found.
  82.  
  83.      UPLO    (input) CHARACTER*1
  84.              = 'U':  Upper triangle of A and B are stored;
  85.              = 'L':  Lower triangle of A and B are stored.
  86.  
  87.      N       (input) INTEGER
  88.              The order of the matrix pencil (A,B).  N >= 0.
  89.  
  90.      A       (input/output) REAL array, dimension (LDA, N)
  91.              On entry, the symmetric matrix A.  If UPLO = 'U', the leading N-
  92.              by-N upper triangular part of A contains the upper triangular
  93.              part of the matrix A.  If UPLO = 'L', the leading N-by-N lower
  94.              triangular part of A contains the lower triangular part of the
  95.              matrix A.
  96.  
  97.              On exit, the lower triangle (if UPLO='L') or the upper triangle
  98.              (if UPLO='U') of A, including the diagonal, is destroyed.
  99.  
  100.      LDA     (input) INTEGER
  101.              The leading dimension of the array A.  LDA >= max(1,N).
  102.  
  103.      B       (input/output) REAL array, dimension (LDA, N)
  104.              On entry, the symmetric matrix B.  If UPLO = 'U', the leading N-
  105.              by-N upper triangular part of B contains the upper triangular
  106.              part of the matrix B.  If UPLO = 'L', the leading N-by-N lower
  107.              triangular part of B contains the lower triangular part of the
  108.              matrix B.
  109.  
  110.              On exit, if INFO <= N, the part of B containing the matrix is
  111.              overwritten by the triangular factor U or L from the Cholesky
  112.              factorization B = U**T*U or B = L*L**T.
  113.  
  114.      LDB     (input) INTEGER
  115.              The leading dimension of the array B.  LDB >= max(1,N).
  116.  
  117.      VL      (input) REAL
  118.              VU      (input) REAL If RANGE='V', the lower and upper bounds of
  119.              the interval to be searched for eigenvalues. VL < VU.  Not
  120.              referenced if RANGE = 'A' or 'I'.
  121.  
  122.      IL      (input) INTEGER
  123.              IU      (input) INTEGER If RANGE='I', the indices (in ascending
  124.              order) of the smallest and largest eigenvalues to be returned.  1
  125.              <= IL <= IU <= N, if N > 0; IL = 1 and IU = 0 if N = 0.  Not
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. SSSSSSSSYYYYGGGGVVVVXXXX((((3333SSSS))))                                                          SSSSSSSSYYYYGGGGVVVVXXXX((((3333SSSS))))
  137.  
  138.  
  139.  
  140.              referenced if RANGE = 'A' or 'V'.
  141.  
  142.      ABSTOL  (input) REAL
  143.              The absolute error tolerance for the eigenvalues.  An approximate
  144.              eigenvalue is accepted as converged when it is determined to lie
  145.              in an interval [a,b] of width less than or equal to
  146.  
  147.              ABSTOL + EPS *   max( |a|,|b| ) ,
  148.  
  149.              where EPS is the machine precision.  If ABSTOL is less than or
  150.              equal to zero, then  EPS*|T|  will be used in its place, where
  151.              |T| is the 1-norm of the tridiagonal matrix obtained by reducing
  152.              A to tridiagonal form.
  153.  
  154.              Eigenvalues will be computed most accurately when ABSTOL is set
  155.              to twice the underflow threshold 2*DLAMCH('S'), not zero.  If
  156.              this routine returns with INFO>0, indicating that some
  157.              eigenvectors did not converge, try setting ABSTOL to
  158.              2*SLAMCH('S').
  159.  
  160.      M       (output) INTEGER
  161.              The total number of eigenvalues found.  0 <= M <= N.  If RANGE =
  162.              'A', M = N, and if RANGE = 'I', M = IU-IL+1.
  163.  
  164.      W       (output) REAL array, dimension (N)
  165.              On normal exit, the first M elements contain the selected
  166.              eigenvalues in ascending order.
  167.  
  168.      Z       (output) REAL array, dimension (LDZ, max(1,M))
  169.              If JOBZ = 'N', then Z is not referenced.  If JOBZ = 'V', then if
  170.              INFO = 0, the first M columns of Z contain the orthonormal
  171.              eigenvectors of the matrix A corresponding to the selected
  172.              eigenvalues, with the i-th column of Z holding the eigenvector
  173.              associated with W(i).  The eigenvectors are normalized as
  174.              follows:  if ITYPE = 1 or 2, Z**T*B*Z = I; if ITYPE = 3,
  175.              Z**T*inv(B)*Z = I.
  176.  
  177.              If an eigenvector fails to converge, then that column of Z
  178.              contains the latest approximation to the eigenvector, and the
  179.              index of the eigenvector is returned in IFAIL.  Note: the user
  180.              must ensure that at least max(1,M) columns are supplied in the
  181.              array Z; if RANGE = 'V', the exact value of M is not known in
  182.              advance and an upper bound must be used.
  183.  
  184.      LDZ     (input) INTEGER
  185.              The leading dimension of the array Z.  LDZ >= 1, and if JOBZ =
  186.              'V', LDZ >= max(1,N).
  187.  
  188.      WORK    (workspace/output) REAL array, dimension (LWORK)
  189.              On exit, if INFO = 0, WORK(1) returns the optimal LWORK.
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. SSSSSSSSYYYYGGGGVVVVXXXX((((3333SSSS))))                                                          SSSSSSSSYYYYGGGGVVVVXXXX((((3333SSSS))))
  203.  
  204.  
  205.  
  206.      LWORK   (input) INTEGER
  207.              The length of the array WORK.  LWORK >= max(1,8*N).  For optimal
  208.              efficiency, LWORK >= (NB+3)*N, where NB is the blocksize for
  209.              SSYTRD returned by ILAENV.
  210.  
  211.              If LWORK = -1, then a workspace query is assumed; the routine
  212.              only calculates the optimal size of the WORK array, returns this
  213.              value as the first entry of the WORK array, and no error message
  214.              related to LWORK is issued by XERBLA.
  215.  
  216.      IWORK   (workspace) INTEGER array, dimension (5*N)
  217.  
  218.      IFAIL   (output) INTEGER array, dimension (N)
  219.              If JOBZ = 'V', then if INFO = 0, the first M elements of IFAIL
  220.              are zero.  If INFO > 0, then IFAIL contains the indices of the
  221.              eigenvectors that failed to converge.  If JOBZ = 'N', then IFAIL
  222.              is not referenced.
  223.  
  224.      INFO    (output) INTEGER
  225.              = 0:  successful exit
  226.              < 0:  if INFO = -i, the i-th argument had an illegal value
  227.              > 0:  SPOTRF or SSYEVX returned an error code:
  228.              <= N:  if INFO = i, SSYEVX failed to converge; i eigenvectors
  229.              failed to converge.  Their indices are stored in array IFAIL.  >
  230.              N:   if INFO = N + i, for 1 <= i <= N, then the leading minor of
  231.              order i of B is not positive definite.  The factorization of B
  232.              could not be completed and no eigenvalues or eigenvectors were
  233.              computed.
  234.  
  235. FFFFUUUURRRRTTTTHHHHEEEERRRR DDDDEEEETTTTAAAAIIIILLLLSSSS
  236.      Based on contributions by
  237.         Mark Fahey, Department of Mathematics, Univ. of Kentucky, USA
  238.  
  239.  
  240. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  241.      INTRO_LAPACK(3S), INTRO_SCSL(3S)
  242.  
  243.      This man page is available only online.
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.